<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>合同管理</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="<%=basepath%>css/index.css" rel="stylesheet" type="text/css">
    <link href="<%=basepath%>css/platform.css" rel="stylesheet" type="text/css">
    <script src="<%=basepath%>js/jquery-1.8.3.min.js"></script>
    <script src="<%=basepath%>js/layer/layer.js"></script>
</head>
<body>
<div class="viewport">
    <div class="header">
       <div class="header-1">
           <a href="javascrpt:void(0)" id="join" class="header-2">
              <span id="account" class="account">${empty user.realName ? '' : user.realName}</span>&nbsp;&nbsp;<span id="deptName" class="deptName">${user.departmentName}</span>
           </a>
           <a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=store&prefix=3g_platform_shop-rent_op&entrance=yes" class="back" id="back">返回</a>
           <span class="span-num">WYP34000</span>
       </div>
    </div>
    <div class="content m-top">
        <div class="hr-1"></div>
        <div class="fix">
            <div class="fix-1">
               <a href="/wape-web/api/core/centerService?serviceCode=MMZS24104&openId=${openId}&isWX=${isWX}" class="fix-1-1" style="width:50%;">商铺合同信息</a>
               <a href="/wape-web/api/core/centerService?serviceCode=MMZS24105&openId=${openId}&isWX=${isWX}" class="fix-1-1 li-active" style="width:50%;">近期合同信息</a>
            </div> 
        </div>
        <div class="blank-m"></div>
        <c:forEach items="${times}" var="t">
        <div class="cm-1">
            <div class="cm-1-1"><span style="font-size:14px;float:left;position:relative;top:5px;">${t}</span></div>
        </div>
        <div class="cm-2">
            <div class="cm-2-1">
                <table>
                   <c:forEach items="${leasing}" var="lea">
                   <tr onclick="location.href='/wape-web/api/core/centerService?serviceCode=MMZS24108&contractNum=${lea.contractNum}';">
                      <td class="td-1">${lea.storeName}</td>
                      <td class="td-2">${lea.contractNum}</td>
                      <td class="td-3">${lea.tenantName}</td>
                      <td class="td-4">${lea.tenantday}</td>
                   </tr>
                   </c:forEach>
                </table>
            </div>
        </div>
        </c:forEach>
    </div>
</div>
</body>
<script type="text/javascript">
     /*错误提示*/
     $(function(){
         var error = "${requestScope.returnMsg}";
         if(error != "" && error != "成功!"){
             layer.msg(error,{shadeClose:true,shade:0.1,time:2000});
         }
     });
     
</script>
</html>


